IHipInputMap

Example of an inputmap data format:

{
    "actions": {
        "run": {
            "gamepad": ["psCross"]
        }
    },
    "directionals": {
        "move": {
            "x": [
                {"keyboard": "a", "gamepad": "dPadLeft", "value": -1},
                {"keyboard": "d", "gamepad": "dPadRight","value": 1},
                {"analog": "left", "axis": "x"}
            ],
            "y": [
                {"keyboard": "w", "gamepad": "dPadUp", "value": -1},
                {"keyboard": "s", "gamepad": "dPadDown", "value": 1},
                {"analog": "left", "axis": "y"}
            ]
        }
    }
}

Members

Functions

getAxis
Vector3 getAxis(string directionalName)

Gets a Vector3 from a mapped directional.

isActionJustPressed
float isActionJustPressed(string actionName)
Undocumented in source.
isActionJustReleased
float isActionJustReleased(string actionName)
Undocumented in source.
isActionPressed
float isActionPressed(string actionName)
Undocumented in source.
registerInputAction
void registerInputAction(string actionName, Context ctx)
Undocumented in source.

Structs

AxisContext
struct AxisContext
Undocumented in source.
Context
struct Context
Undocumented in source.

Meta